STEP 14: The structure of our error-handling function is good to go! Let's call get_user_input() again!

  • First, in handle_user_errors(), delete this inside your try statement: x·=·5·/·0
  • In , drag Function Call into Variable indented inside your try statement.
  • Change my_function to get_user_input and my_var to user_input.
  • Finally, drag Return Statement to the next line and change my_var to user_input.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)